#pragma  once

class sim;
class PropertiesModel;
class Delegate;

class OilModel : public QObject
{
	Q_OBJECT

public:
	OilModel(sim *_main, const QString &_name);
	~OilModel();
	void init_model();
	PropertiesModel* model;
	QString getName(){ return name;}
private:
	sim *main;
	QString name;
private slots:
	//void getModelData(const int &parent_row, const int &row, const QVariant &value);
	void updateProperties();
signals:
	void setModelData(const int &parent_row, const int &row, const QVariant &value);
};
